﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace myBoard.App
{
	/// <summary>
	/// Interaction logic for Notification.xaml
	/// </summary>
	public partial class Notification : Window
	{
		public Notification() : this("source","message",null)
		{
			
		}

        public Notification(string source,string message,EventHandler callBack)
        {
            this.InitializeComponent();
            _closeBt.Click += new EventHandler(_closeBt_Click);
            _title.Text = source;
            _desc.Text = message;
            if (callBack != null)
                callBack(this, null);
        }

        void _closeBt_Click(object sender, EventArgs e)
        {
            this.Close();
        }
	}
}